<?php

class ImageUtils{
	private $imgDir="hiddencharimages/";
	
  public function displayImage($imgFileName,$cacheTime)
        {
                $imageFile = basename($imgFileName);
                //header("set-contents")
                $fileType = substr($imageFile,strrpos($imageFile,".")+1);
                header("Content-type: image/".$fileType);
                echo file_get_contents($this->imgDir.$imageFile);
				//echo $this->imgDir.$imageFile;
        }
   }
?>
